package com.gw.yunke.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gw.yunke.domain.Comment;
import com.gw.yunke.domain.Recomment;

import java.util.Date;
import java.util.List;

public class CommentResp {

  private Long id;
  private Long userId;
  private String userName;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date createTime;
  private String content;
  private Long videoId;
  @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
  private Date videoTime;
  private Integer praise;
  private Boolean type;

  public Byte hasPraise;//是否已赞 0 没有 1 是

  public List<Recomment> recommentList;

  public Byte getHasPraise() {
    return hasPraise;
  }

  public void setHasPraise(Byte hasPraise) {
    this.hasPraise = hasPraise;
  }

  public List<Recomment> getRecommentList() {
    return recommentList;
  }

  public void setRecommentList(List<Recomment> recommentList) {
    this.recommentList = recommentList;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public Long getVideoId() {
    return videoId;
  }

  public void setVideoId(Long videoId) {
    this.videoId = videoId;
  }

  public Date getVideoTime() {
    return videoTime;
  }

  public void setVideoTime(Date videoTime) {
    this.videoTime = videoTime;
  }

  public Integer getPraise() {
    return praise;
  }

  public void setPraise(Integer praise) {
    this.praise = praise;
  }

  public Boolean getType() {
    return type;
  }

  public void setType(Boolean type) {
    this.type = type;
  }
}
